#!/bin/sh
dir=`pwd`
sys=`ls|grep update|awk -F"-" '{print $2}'|awk -F"_" '{print $1}'|sort -u`
for i in $sys
do
	if ! [[ -d $dir/$i ]]
	then
		mkdir -p $dir/allpackage/$i
	fi
	mv $dir/update-*$i* $dir/allpackage/$i
done
